package com.mx.kn.cstf2.service.impl;

import java.sql.SQLException;

import kn.cstf2.transition.Bean.TransitionBean;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.mx.kn.cstf2.dao.MailDao;
import com.mx.kn.cstf2.dao.TransitionDao;
import com.mx.kn.cstf2.service.MailService;
@Service
public class MailServiceImpl implements MailService{

	@Autowired TransitionDao transitionDao;
	@Autowired MailDao mailDao;
	
	@Override
	public void sendNotifyStatusMail(TransitionBean transisition){
		
		try {
			mailDao.sendNotifyStatusMail(transitionDao.obtenerTransitionBeanByKnkeyAndId(transisition));
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
